package gdt.entity;

import gdt.entity.Holiday;
import java.io.Serializable;
import javax.persistence.*;
import static javax.persistence.FetchType.LAZY;

/**
 * Entity that represents a holiday assigned to a
 * member of a group
 */

@Entity
public class MemberHoliday extends Holiday implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@ManyToOne(fetch=LAZY)
	private Member assignedMember;
	
	
	public MemberHoliday() {
		super();
	}
	
	// ********************** Accessor Methods ********************** //
	
	public Member getAssignedMember() {
		return this.assignedMember;
	}

	public void setAssignedMember(Member assignedMember) {
		this.assignedMember = assignedMember;
	}
   
}
